using System;
using System.Collections;
using System.Collections.Generic;
using Iesi.Collections.Generic;
using Ecreate.Popedom;

namespace Ecreate.Popedom
{
    public partial class tGroup : BusinessBase<long>
    {
        private string _groupname = null;
        public virtual string Groupname
        {
            get { return _groupname; }
            set { _groupname = value; }
        }

        private int? _adminflag = null;

        public virtual int? Adminflag
        {
            get { return _adminflag; }
            set { _adminflag = value; }
        }



        public tGroup() { }

        private IList<tGroupassign> _assigns = new List<tGroupassign>();
        public virtual IList<tGroupassign> Assigns
        {
            get
            {

                return this._assigns;
            }
            set
            {

                this._assigns = value;
            }
        }


        private IList<tSysuser> _users = new List<tSysuser>();

        public virtual IList<tSysuser> Users 
        { 
            get 
            {
                
                return this._users;   
            }
            set
            {

                this._users = value;
            }        
        }
        private tGrouplevel _grouplevel = null;

        public virtual tGrouplevel Grouplevel
        {
            get { return _grouplevel; }
            set { _grouplevel = value; }
        }


        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append(this.GetType().FullName);
			sb.Append(_groupname);
            return sb.ToString().GetHashCode();
        }
    }
}
